import VueI18n from 'vue-i18n'
import Vue from 'vue'
// set ElementUI lang to EN
import enElentUI from 'element-ui/src/locale/lang/en'
import zhElentUI from 'element-ui/src/locale/lang/zh-CN'
import zhelentui from './zh'
import enelentui from './en'
Vue.use(VueI18n)
export default new VueI18n({
  locale: localStorage.getItem('i18n'),
  messages: {
    zh: {
      morning: '早上好',
      goodday: '祝你开心每一天',
      ...zhElentUI,
      ...zhelentui
    },
    en: {
      morning: 'Good Morning',
      goodday: 'Have a nice day',
      ...enElentUI,
      ...enelentui
    }
  }
})
